package cn.edu.zafu.bigdata.Wym;

public abstract class Wym_Shape {

    public abstract double area();

    public abstract double perimeter();

    public final void display(){
        System.out.println("Type:"+ this.getClass().getSimpleName());
        System.out.println("Area:"+ area());
        System.out.println("Perimeter:"+ perimeter());
    }
}


